package com.server.mapper;

import com.server.Example.MoviesTypeExample;
import com.server.entity.MoviesType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * The interface Movies type mapper.
 */
public interface MoviesTypeMapper {
    /**
     * Count by example long.
     *
     * @param example the example
     * @return the long
     */
    long countByExample(MoviesTypeExample example);

    /**
     * Delete by example int.
     *
     * @param example the example
     * @return the int
     */
    int deleteByExample(MoviesTypeExample example);

    /**
     * Delete by primary key int.
     *
     * @param moviesTypeId the movies type id
     * @return the int
     */
    int deleteByPrimaryKey(Integer moviesTypeId);

    /**
     * Insert int.
     *
     * @param record the record
     * @return the int
     */
    int insert(MoviesType record);

    /**
     * Insert selective int.
     *
     * @param record the record
     * @return the int
     */
    int insertSelective(MoviesType record);

    /**
     * Select by example list.
     *
     * @param example the example
     * @return the list
     */
    List<MoviesType> selectByExample(MoviesTypeExample example);

    /**
     * Select by primary key movies type.
     *
     * @param moviesTypeId the movies type id
     * @return the movies type
     */
    MoviesType selectByPrimaryKey(Integer moviesTypeId);

    /**
     * Update by example selective int.
     *
     * @param record  the record
     * @param example the example
     * @return the int
     */
    int updateByExampleSelective(@Param("record") MoviesType record, @Param("example") MoviesTypeExample example);

    /**
     * Update by example int.
     *
     * @param record  the record
     * @param example the example
     * @return the int
     */
    int updateByExample(@Param("record") MoviesType record, @Param("example") MoviesTypeExample example);

    /**
     * Update by primary key selective int.
     *
     * @param record the record
     * @return the int
     */
    int updateByPrimaryKeySelective(MoviesType record);

    /**
     * Update by primary key int.
     *
     * @param record the record
     * @return the int
     */
    int updateByPrimaryKey(MoviesType record);
}